﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Back/Shared/BackBBSSite.Master"
    Inherits="System.Web.Mvc.ViewPage< Wwtfly.BBS.BackModels.ViewModels.Users.UsersViewModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <div class="grid_create tR">
    <p>
        <%= Html.ActionLink("创建", "Add", null, new { id = "btn_create" })%>
    </p>
    </div>
    <div class="grid_list">
        <table>
            <tr>
            <th>
                编号
            </th>
            <th>
                用户名
            </th>
            <th>
                真实姓名
            </th>
          <th>
                用户积分
            </th>
            <th>
                用户彩币
            </th>
            <th>
                用户金额
            </th>
            <th>
                邮箱地址
            </th>
            <th  title="邮箱地址是否验证" class="w60">
                是否验证
            </th>
            <th>
                手机号码
            </th>
            <th title="手机号码是否验证" class="w60">
                是否验证
            </th>
          <%--  <th>
                QQ
            </th>
            <th>
                MSN
            </th>--%>
            <th title="最后一次登陆时间">
               登陆时间
            </th>
            <th>
                注册时间
            </th>
            <th>
                登陆状态
            </th>
             <th class="w130">
                    操作
                </th>
        </tr>
            <% foreach (var item in Model.UsersPagedList)
               {
            %>
            <tr>
             <td class="tC">
                <%= Html.Encode(item.Id) %>
                <%=Html.CheckBox("cbKey", false, new { @class = "hidden" })%>
            </td>
                <td>
                <%=item.UserName %>
                </td>
                <td>
                <%=item.TrueName %>
                </td>
            <td class="tR">
                <%= Html.Encode(String.Format("{0:F}", item.UserIntegral)) %>
            </td>
             <td  class="tR">
                <%= Html.Encode(String.Format("{0:F}", item.UserColourMoney)) %>
            </td>
            <td class="tR">
                <%= Html.Encode(String.Format("{0:F}", item.UserMoney)) %>
            </td>
            <td>
            <span title="<%= Html.Encode(item.UserEmail) %>">
            <%= Html.Encode(item.UserEmail) %></span>
            </td>
            <td class="tC">
                 <%= Wwtfly.Utility.ContentHelper.ConvertBoolState(item.UserEmailState)%> 
            </td>
            <td>
                <%= Html.Encode(item.UserMobile) %>
            </td>
            <td class="tC">
                 <%= Wwtfly.Utility.ContentHelper.ConvertBoolState(item.UserMobileState)%> 
            </td>
           <%-- <td>
                <%= Html.Encode(item.UserQQ) %>
            </td>
            <td>
                <%= Html.Encode(item.UserMSN) %>
            </td>--%>
            <td class="tC">
                <%= Html.Encode(String.Format("{0:g}", item.UserLoginTime)) %>
            </td>
            <td class="tC">
                <%= Html.Encode(String.Format("{0:g}", item.UserRegisterTime)) %>
            </td>
            <td class="tC">
                <%= item.UserLoginState?"在线":"下线" %>
            </td>
                 <td  class="tC">
                <%= Html.ActionLink("编辑", "Update", new { id = item.Id })%> |
                <%= Html.ActionLink("删除", "Delete", new { id = item.Id },
                           new { command = "delete" })%>
            </td>
            </tr>
            <%
           } %>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

